// 参数解释 type 1 , 2, 3

const type = {
  1: {
    type: "iatCnUrl",
    typeCode: "dialectModel", // 国内方言
  },
  2: {
    type: "istUrl",
    typeCode: "Singapore", // ist
  },
  3 : {
    type: "iatUrl",
    typeCode: "Singapore", // iat
  }
};



const preParameterType = {
  // 中英单独配置
  1:{
    type: "tcUrl",
    typeCode: "tc_cn_demo",
  },
  // 其他
  2:{
    type: "tcUrl",
    typeCode: "tc_demo",
  }

}


export const iatLanguage = {
  en_cbm: {
    value : 'en',
    code: "en",      //所绑定下拉值
    name: "English", //英文模式下所显示的语言名称
    language: "en_cbm",
    isNiche: false,
    ent: "", // 发音人
    cn: "英文",      //中文模式下所显示的语言名称
    type : 2,
    parames : type[2],
    children: [
      {
        from: "cn", //翻译语言所绑定下拉值
        name: "Chinese", //英文显示名称
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",  //翻译语言所对应发音人
        cn: "中文", //中文显示名称
        parames:preParameterType[1]
      },
      {
        from: "ar",
        name: "Arabic",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        cn: "阿拉伯语",
        parames:preParameterType[2]
      },
      {
        from: "es",
        name: "Spanish",
        ent: "es-x2_SpEs_Aurora",
        cn: "西班牙语",
        parames:preParameterType[2]
      },

    ]
  },
  cn_cbm: {
    value : 'cn',
    code: "cn",
    name: "Chinese",
    language: "cn_cbm",
    isNiche: true,
    ent: "",
    cn: "中文",
    parames : type[2],
    type : 2,
    children: [
      {
        name: "English",
        from: "en",
        cn: "英文",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[1]
      },
      {
        from: "ar",
        name: "Arabic",
        ent: "ar-x4_ArEn_Rania_assist",
        cn: "阿拉伯语",
        parames:preParameterType[2]
      },
      {
        from: "es",
        name: "Spanish",
        ent: "es-x2_SpEs_Aurora",
        cn: "西班牙语",
        parames:preParameterType[2]
      },
    ],
  },
  // 中英
  cn_en:{
    value : 'cn',
    code: "cnen", // 中英code需要特殊处理  会使用filterCode字段作为页面展示
    filterCode:'cn',
    name: "Chinese & English",
    language: "cnen",
    isNiche: false,
    ent: "",
    cn: "中英",
    type : 2,
    parames : type[2],
    children: [
      {
        from: "cnen",
        name: "Chinese & English",
        cn: "中英",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[1]
      }
    ]
  },
  // 阿语 --> 英文，中文
  ar_cbm:{
    value : 'ar',
    code: "ar",
    name: "Arabic",
    language: "ar",
    isNiche: false,
    ent: "",
    cn: "阿拉伯语",
    type : 2,
    parames : type[2],
    children: [
      {
        from: "en",
        name: "English",
        cn: "英文",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[2]
      },
      {
        from: "cn",
        name: "Chinese",
        cn: "中文",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[2]
      }
    ]
  },
  // 西班牙语 --> 英文
  es_cbm:{
    value : 'es',
    code: "es",
    name: "Spanish",
    language: "es",
    isNiche: false,
    ent: "",
    cn: "西班牙语",
    type : 2,
    parames : type[2],
    children: [
      {
        from: "en",
        name: "English",
        cn: "英文",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[2]
      },
      {
        from: "cn",
        name: "Chinese",
        cn: "中文",
        ent: "cn-x5_pro_v3_lingsiya_TcCn,en-x5_EnUs_Lila_flow",
        parames:preParameterType[2]
      }
    ]
  }

  
};
